package com.ruiysoft.entity.logistics;

import java.io.Serializable;

/**
 * 快递API返回值-物流报文
 */
public class APILogisticsMessage implements Serializable{

	private static final long serialVersionUID = 1L;

	private String expressNO;
	private String comCode;
	private String comCompany;
	
	private boolean result = true;
	private String returnCode;
	
	private Boolean ischeck;
	private String status;
	private String state;
	private String nu;
	private String message;

	private LogisticsMessageDetail[] data;

	public Boolean getIscheck() {
		return ischeck;
	}

	public void setIscheck(Boolean ischeck) {
		this.ischeck = ischeck;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getNu() {
		return nu;
	}

	public void setNu(String nu) {
		this.nu = nu;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public LogisticsMessageDetail[] getData() {
		return data;
	}

	public void setData(LogisticsMessageDetail[] data) {
		this.data = data;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	public boolean isHaveData() {
		return data!=null && data.length>0;
	}

	public String getExpressNO() {
		return expressNO;
	}

	public void setExpressNO(String expressNO) {
		this.expressNO = expressNO;
	}

	public String getComCode() {
		return comCode;
	}

	public void setComCode(String comCode) {
		this.comCode = comCode;
	}

	public String getComCompany() {
		return comCompany;
	}

	public void setComCompany(String comCompany) {
		this.comCompany = comCompany;
	}

    public static class LogisticsMessageDetail implements Serializable{
        /**
         *
         */
        private static final long serialVersionUID = 1L;
        private String time;
        private String ftime;
        private String context;
        public String getTime() {
            return time;
        }
        public void setTime(String time) {
            this.time = time;
        }
        public String getFtime() {
            return ftime;
        }
        public void setFtime(String ftime) {
            this.ftime = ftime;
        }
        public String getContext() {
            return context;
        }
        public void setContext(String context) {
            this.context = context;
        }


    }
}
